<?php
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); // Connect DB
$res['config'] = $db->select_query("SELECT * FROM ".TB_CONFIG.",".TB_TEMPLATES." where name=temname and sort='2' ");
$arr['config'] = $db->fetch($res['config']);
 $types=$arr['config']['type'];
 if ($types !='application/x-shockwave-flash' ) {
?>
<TABLE width="<?=$arr['config']['width'];?>" align=center cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD width="<?=$arr['config']['width'];?>">
    <?php
    if(!empty($arr['config']['picname']))
    {
    ?>
    <img src="templates/<?echo WEB_TEMPLATES;?>/images/config/<?=$arr['config']['picname'];?>"  width="<?=$arr['config']['width'];?>" height="<?=$arr['config']['height'];?>" border="0" align="top" />
    <?php
    }
    ?>
</td>
</tr>
</table>

<?
	} else {
		  ?>
<TABLE width="<?=$arr['config']['width'];?>" align=center cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD width="<?=$arr['config']['width'];?>" border="0">
</td>
</tr>
</table>
<?
}
?>

